/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.heyma.webapp.dao;

import java.util.List;

/**
 *
 * @author John
 */
public interface Dao {

    void save(Object obj);

    public void persist(Object obj);

    public void update(Object obj);

    public void delete(Object obj);

    public <T> List<T> findAll(Class<T> en);

    public <T> Object findOne(Class<T> en, int id);
}
